package top.mataiji.manager.pojo;

import java.io.Serializable;

/**
 * @author zhoubin
 * @since 1.0.0
 */
public class User implements Serializable {
    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 登录名
     */
    private String loginname;

    /**
     * 密码
     */
    private String password;

    /**
     * 0是普通用户，1是管理员
     */
    private Integer userclassify;

    /**
     * 真实姓名
     */
    private String realname;

    /**
     * 身份证号
     */
    private String idnumber;

    /**
     * 积分
     */
    private Integer integral;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 用户状态
     */
    private Long userStatus;

    /**
     * tb_user
     */
    private static final long serialVersionUID = 1L;

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname == null ? null : loginname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getUserclassify() {
        return userclassify;
    }

    public void setUserclassify(Integer userclassify) {
        this.userclassify = userclassify;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber == null ? null : idnumber.trim();
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Long getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Long userStatus) {
        this.userStatus = userStatus;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userid=").append(userid);
        sb.append(", loginname=").append(loginname);
        sb.append(", password=").append(password);
        sb.append(", userclassify=").append(userclassify);
        sb.append(", realname=").append(realname);
        sb.append(", idnumber=").append(idnumber);
        sb.append(", integral=").append(integral);
        sb.append(", phone=").append(phone);
        sb.append(", userStatus=").append(userStatus);
        sb.append("]");
        return sb.toString();
    }
}
